Skip to content

fix: default nil context to context.Background in Run#9

Merged
mfridman merged 1 commit intomainfrom
mf/parse-run
Feb 16, 2026
Merged

fix: default nil context to context.Background in Run#9
mfridman merged 1 commit intomainfrom
mf/parse-run

Conversation

@mfridman
Copy link
Collaborator

This PR makes Run default a nil context to context.Background() instead of letting it propagate to the user's Exec function. This follows the standard Go idiom used by net/http, database/sql, and others. The corresponding test case that asserted nil context as an error has been removed since nil context is now handled gracefully.

@mfridman mfridman merged commit 7444a39 into main Feb 16, 2026
3 checks passed
@mfridman mfridman deleted the mf/parse-run branch February 16, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant